#include <vector>

#include "polyscope/polyscope.h"
#include "polyscope/surface_mesh.h"

int main()
{
    // Initialize Polyscope
    polyscope::init();

    std::vector<glm::vec3> vertexPositions;
    std::vector<std::vector<size_t>> faceIndices;

    glm::vec3 p;

    p[0] = 0.0;
    p[1] = 0.0;
    p[2] = 0.0;
    vertexPositions.emplace_back(p);

    p[0] = 0.0;
    p[1] = 1.0;
    p[2] = 0.0;
    vertexPositions.emplace_back(p);

    p[0] = 1.0;
    p[1] = 0.0;
    p[2] = 0.0;
    vertexPositions.emplace_back(p);

    std::vector<size_t> tri;

    tri.clear();
    tri.emplace_back(0);
    tri.emplace_back(1);
    tri.emplace_back(2);

    faceIndices.emplace_back(tri);

    auto psMesh = polyscope::registerSurfaceMesh("simple triangle", vertexPositions, faceIndices);

    // Show the GUI
    polyscope::show();
}

